﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true" CodeBehind="QuanLyThanhVien.aspx.cs" Inherits="LotteCinema.Admin.QuanLyNhanVien" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<script language="javascript" type="text/javascript" src="datetimepicker.js">

    //Date Time Picker script- by TengYong Ng of http://www.rainforestnet.com
    //Script featured on JavaScript Kit (http://www.javascriptkit.com)
    //For this script, visit http://www.javascriptkit.com 

</script>
    <style type="text/css">
        .style27
        {
            width: 397px;
            margin-left: 160px;
        }
        .style28
        {
            width: 397px;
        }
        .style31
        {
            width: 319px;
            text-align: center;
        }
        .style32
        {
            text-align: right;
        }
        .style34
        {
            margin-left: 260px;
        }
        .style35
        {
            margin-left: 379px;
        }
        </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<div class="title" style="font-size:14pt;">QUẢN LÝ THÀNH VIÊN</div>
    <table style="width:100%;">
        <tr>
            <td class="style26" colspan="3" align="center">
                <asp:Label ID="lblThongBao" runat="server" ForeColor="Red" Font-Size="12pt"></asp:Label>
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
    </table>
    <table style="width:100%;">
        <tr>
            <td class="style28">
                &nbsp;</td>
            <td class="style31">
                <asp:Label ID="lblMaNV" runat="server" Font-Size="12pt" Text="Mã Thành Viên:"></asp:Label>
                <asp:TextBox ID="txtMaTV" runat="server" Width="140px" 
                    style="margin-left: 50px"></asp:TextBox>
            </td>
            <td>
                <asp:Button ID="Button1" runat="server" onclick="Button1_Click1" 
                    Text="Lấy Thông Tin" />
            </td>
        </tr>
        <tr>
            <td class="style28">
                &nbsp;</td>
            <td class="style31">
                <asp:Label ID="Label2" runat="server" Font-Size="12pt" Text="Mật Khẩu:"></asp:Label>
                <asp:TextBox ID="txtMatKhau" runat="server" Height="27px" Width="140px" 
                    style="margin-left: 90px"></asp:TextBox>
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style27">
                &nbsp;</td>
            <td class="style31">
                <asp:Label ID="Label3" runat="server" Font-Size="12pt" Text="Họ Tên:"></asp:Label>
                <asp:TextBox ID="txtHoTen" runat="server" Height="27px" Width="140px" 
                    style="margin-left: 106px"></asp:TextBox>
            </td>
            <td>
                <asp:Button ID="btTimKiem" runat="server" onclick="btTimKiem_Click" 
                    Text="Tìm Kiếm" Width="122px" />
            </td>
        </tr>
        <tr>
            <td class="style27">
                &nbsp;</td>
            <td class="style31">
                <asp:Label ID="Label4" runat="server" Font-Size="12pt" Text="CMND:"></asp:Label>
                <asp:TextBox ID="txtCMND" runat="server" Height="27px" Width="140px" 
                    style="margin-left: 109px"></asp:TextBox>
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style27">
                &nbsp;</td>
            <td class="style31">
                <asp:Label ID="Label5" runat="server" Font-Size="12pt" Text="Ngày Sinh:"></asp:Label>
                <asp:TextBox ID="txtNgaySinh" runat="server" Width="140px" Height="27px"
                    style="margin-left: 85px" ></asp:TextBox>
                <asp:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="txtNgaySinh" Enabled="true" Format="dd/MM/yyyy">
                </asp:CalendarExtender>
        
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style27">
                &nbsp;</td>
            <td class="style31">
                <asp:Label ID="Label6" runat="server" Font-Size="12pt" Text="Giới Tính"></asp:Label>
                <asp:DropDownList ID="DDLGioitinh" runat="server" Height="27px" Width="140px" 
                    style="margin-left: 87px" >
                </asp:DropDownList>
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style27">
                &nbsp;</td>
            <td class="style31">
                <asp:Label ID="Label8" runat="server" Font-Size="12pt" Text="Điện Thoại:"></asp:Label>
                <asp:TextBox ID="txtDienThoai" runat="server" Height="27px" Width="140px" 
                    style="margin-left: 76px" ></asp:TextBox>
            </td>
            <td>
                &nbsp;</td>
        </tr>
        </table>
    <table style="width:100%;">
        <tr>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style32">
                &nbsp;</td>
            <td class="style26">
                <asp:GridView ID="grThanhVien" runat="server" AllowPaging="True" 
                    AllowSorting="True" AutoGenerateColumns="False" BackColor="White" 
                    BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" CellPadding="3" 
                    CssClass="style34" DataKeyNames="MATV" 
                    onselectedindexchanged="grThanhVien_SelectedIndexChanged" 
                    onpageindexchanging="grThanhVien_PageIndexChanging">
                    <Columns>
                        <asp:BoundField DataField="MATV" HeaderText="MATV" ReadOnly="True" 
                            SortExpression="MATV" />
                        <asp:BoundField DataField="MATKHAU" HeaderText="MATKHAU" 
                            SortExpression="MATKHAU" />
                        <asp:BoundField DataField="HOTEN" HeaderText="HOTEN" 
                            SortExpression="HOTEN" />
                        <asp:BoundField DataField="CMND" HeaderText="CMND" SortExpression="CMND" />
                        <asp:BoundField DataField="NGAYSINH" HeaderText="NGAYSINH" 
                            SortExpression="NGAYSINH" />
                        <asp:CheckBoxField DataField="GIOITINH" HeaderText="GIOITINH" 
                            SortExpression="GIOITINH" />
                        <asp:BoundField DataField="DIENTHOAI" HeaderText="DIENTHOAI" 
                            SortExpression="DIENTHOAI" />
                    </Columns>
                    <FooterStyle BackColor="White" ForeColor="#000066" />
                    <HeaderStyle BackColor="#FF6600" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" />
                    <RowStyle ForeColor="#000066" />
                    <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
                    <SortedAscendingCellStyle BackColor="#F1F1F1" />
                    <SortedAscendingHeaderStyle BackColor="#007DBB" />
                    <SortedDescendingCellStyle BackColor="#CAC9C9" />
                    <SortedDescendingHeaderStyle BackColor="#00547E" />
                </asp:GridView>
                <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                    ConnectionString="<%$ ConnectionStrings:QuanLyRapPhim1ConnectionString %>" 
                    SelectCommand="SELECT * FROM [THANHVIEN]"></asp:SqlDataSource>
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td>
                <asp:ImageButton ID="imThem" runat="server" CssClass="style35" Height="52px" 
                    ImageUrl="~/Images/THEM.png" onclick="imThem_Click" Width="110px" />
                <asp:ImageButton ID="imXoa" runat="server" Height="52px" 
                    ImageUrl="~/Images/xoa.png" onclick="imXoa_Click1" Width="110px" />
                <asp:ImageButton ID="imSua" runat="server" Height="52px" 
                    ImageUrl="~/Images/SUA.png" onclick="imSua_Click1" Width="110px" />
            </td>
            <td>
                &nbsp;</td>
        </tr>
    </table>
</asp:Content>
